package com.lijing.InsertSort;


import com.lijing.ShellSort.Shell;
import com.lijing.StopWatch.StopWatch;

import java.util.Arrays;

public class InsertionTest {
    public static void main(String[] args) {
        Integer[] arr = new Integer[80000];
        for (int i = 0; i < 80000; i++) {
            arr[i] = (int)(Math.random()*800000);
        }
        StopWatch sw = new StopWatch();
        Insertion.sort(arr);
        //Shell.sort(arr);
        double time = sw.elapsedTime();
        System.out.println("Cost time:"+time+"s");
    }
}
